package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.CompanyCo;
import com.engineering.elink.co.CompanyInsertCo;
import com.engineering.elink.co.CompanyUpdateCo;
import com.engineering.elink.domain.Company;

public interface CompanyMapper {
    int deleteByPrimaryKey(String companyId);

    int insert(Company record);

    int insertSelective(CompanyInsertCo companyInsertCo);

    Map<String,Object> selectBaseInfoByUserId (String userId);
    
    Map<String,Object> selectBaseInfoByCompanyId (String companyId);

    int updateByUserIdSelective(CompanyUpdateCo companyUpdateCo);

    int updateByPrimaryKeySelective(Company record);
    
    Company selectByPrimaryKey(String companyId);
    
    Map<String, Object> getRecruit(@Param("companyId") String companyId);

	Map<String, Object> getBasicFacts(@Param("fkId") String fkId);
	
	Map<String, Object> getResource(@Param("companyId") String companyId);
	
	Company selectCurrentCompanyInfo (String userId);

//	Company getInfoById(@Param("companyId")String companyId);

	List<Map<String, Object>> getPraiseCompany(@Param("count")int count);

	Map<String, Object> getStatistics();

	List<Map<String, Object>> getCompanyList(@Param("co")CompanyCo co);
	
	int  selectCountCompanyList(@Param("co")CompanyCo co);
}	